package org.lanqiao.bean;

import java.io.Serializable;

/**
 * zuopin
 * @author 
 */
public class Zuopin implements Serializable {
    private Integer id;

    private Integer userId;

    private String herf;

    private Integer zpOptions;

    private String date;

    private String b1;

    private String b2;

    private String b3;

    private String zpDescription;

    private static final long serialVersionUID = 1L;
    

    public Zuopin(Integer id, Integer userId, String herf, String zpDescription) {
		super();
		this.id = id;
		this.userId = userId;
		this.herf = herf;
		this.zpDescription = zpDescription;
	}

	public Zuopin(Integer userId, String herf, String zpDescription) {
		super();
		this.userId = userId;
		this.herf = herf;
		this.zpDescription = zpDescription;
	}
	
	public Zuopin( String herf, String zpDescription,Integer id) {
		super();
		this.id= id;
		this.herf = herf;
		this.zpDescription = zpDescription;
	}

	public Zuopin() {
		super();
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getHerf() {
        return herf;
    }

    public void setHerf(String herf) {
        this.herf = herf;
    }

    public Integer getZpOptions() {
        return zpOptions;
    }

    public void setZpOptions(Integer zpOptions) {
        this.zpOptions = zpOptions;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getB1() {
        return b1;
    }

    public void setB1(String b1) {
        this.b1 = b1;
    }

    public String getB2() {
        return b2;
    }

    public void setB2(String b2) {
        this.b2 = b2;
    }

    public String getB3() {
        return b3;
    }

    public void setB3(String b3) {
        this.b3 = b3;
    }

    public String getZpDescription() {
        return zpDescription;
    }

    public void setZpDescription(String zpDescription) {
        this.zpDescription = zpDescription;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Zuopin other = (Zuopin) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getHerf() == null ? other.getHerf() == null : this.getHerf().equals(other.getHerf()))
            && (this.getZpOptions() == null ? other.getZpOptions() == null : this.getZpOptions().equals(other.getZpOptions()))
            && (this.getDate() == null ? other.getDate() == null : this.getDate().equals(other.getDate()))
            && (this.getB1() == null ? other.getB1() == null : this.getB1().equals(other.getB1()))
            && (this.getB2() == null ? other.getB2() == null : this.getB2().equals(other.getB2()))
            && (this.getB3() == null ? other.getB3() == null : this.getB3().equals(other.getB3()))
            && (this.getZpDescription() == null ? other.getZpDescription() == null : this.getZpDescription().equals(other.getZpDescription()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getHerf() == null) ? 0 : getHerf().hashCode());
        result = prime * result + ((getZpOptions() == null) ? 0 : getZpOptions().hashCode());
        result = prime * result + ((getDate() == null) ? 0 : getDate().hashCode());
        result = prime * result + ((getB1() == null) ? 0 : getB1().hashCode());
        result = prime * result + ((getB2() == null) ? 0 : getB2().hashCode());
        result = prime * result + ((getB3() == null) ? 0 : getB3().hashCode());
        result = prime * result + ((getZpDescription() == null) ? 0 : getZpDescription().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", herf=").append(herf);
        sb.append(", zpOptions=").append(zpOptions);
        sb.append(", date=").append(date);
        sb.append(", b1=").append(b1);
        sb.append(", b2=").append(b2);
        sb.append(", b3=").append(b3);
        sb.append(", zpDescription=").append(zpDescription);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}